package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品信息对象 medicine
 * 
 * @author 王帅
 * @date 2024-08-24
 */
public class Medicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品价格 */
    @Excel(name = "药品价格")
    private BigDecimal medicinePrice;

    /** 药品状态（0：起售，1：停售） */
    @Excel(name = "药品状态", readConverterExp = "0=：起售，1：停售")
    private Integer status;

    /** 药品库存 */
    @Excel(name = "药品库存")
    private Long stock;

    /** 药品分类 */
    @Excel(name = "药品分类")
    private String category;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMedicineName(String medicineName) 
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName() 
    {
        return medicineName;
    }

    public void setMedicinePrice(BigDecimal medicinePrice) 
    {
        this.medicinePrice = medicinePrice;
    }

    public BigDecimal getMedicinePrice() 
    {
        return medicinePrice;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medicineName", getMedicineName())
            .append("medicinePrice", getMedicinePrice())
            .append("status", getStatus())
            .append("stock", getStock())
            .append("category", getCategory())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
